import { defineStore } from 'pinia';
import { footerActions, footerGetters, footerState } from './types';
const state = (): footerState => {
    return {
        component: {
            img: 'footer-img.gif',
            motto: '生而自由，却无往不在枷锁之中。',
            copyright: `Copyright © 2021-${new Date().getFullYear()} By 雨落`,
            china: 'china',
            beian: '鄂ICP备2021018528号',
            beianUrl: 'https://beian.miit.gov.cn/',
            national: 'https://gw.alicdn.com/tfs/TB1jwakrbH1gK0jSZFwXXc7aXXa-20-20.png'
        }
    }
}

const actions: footerActions = {

}

const getters: footerGetters = {
}


export const usefooterStore = defineStore('footerComponet', {
    state,
    actions,
    getters,
});

